<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of report
 *
 * @author fendi
 */
class report extends Controller{
    var $data;
    function report(){
        parent::Controller();
        $this->data['title']='Report';
    }
    function pembelian_nota($idPembelian){
        $this->load->model('m_pembelian');
        $this->data['pembelian']=$this->m_pembelian->getPembelianById($idPembelian);
        $this->data['detailpembelian']=$this->m_pembelian->getDetailPembelianByIdPembelian($idPembelian);
        $this->load->view('pembelian/report',$this->data);
    }
}
?>
